@extends('backend.layouts.main-iframe')
@section('content')
<div class="box box-primary">
    <div class="box-body">
        <table class="table table-striped ">
            <tr>
                <th style="width: 30%">角色名称</th>
                <td>{{$roleDatas->role_name}}</td>
            </tr>
            <tr>
                <th>角色说明</th>
                <td>{{$roleDatas->role_explain}}</td>
            </tr>
            <tr>
                <th>权限</th>
                <td>
                    @foreach($roleDatas->getPermission AS $permission)
                    <span class="label label-success">{{$permission->permissions_explain}}</span>
                    @endforeach
                </td>
            </tr>
            <tr>
                <th>更新时间</th>
                <td>{{$roleDatas->updated_at}}</td>
            </tr>
        </table>
    </div>
</div>
@endsection